using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
using JoyfulHomeJourney.BackEnd.Infrastructure.Tools;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class TaskAttachmentsExtend
{
		public static ResponseTaskAttachmentsDto ToResponseDto(this TaskAttachments entity)
{			return new ResponseTaskAttachmentsDto
			{
				attachmentId = entity.TaAttachmentId,
				filePath = entity.TaFilePath,
				taskId = entity.TaTaskId,
				uploadedAt = entity.TaUploadedAt,
				uploadedAtStr =Tools.TimeToString(entity.TaUploadedAt),
			};
		}
	}
}
